FROM centos:7

MAINTAINER Horgen="horgen_lzc@163.com"

ADD jdk-8u91-linux-x64.tar.gz /usr/local

ENV JAVA_HOME /usr/local/jdk1.8.0_91

ADD apache-tomcat-9.0.80.tar.gz /usr/local

RUN mv /usr/local/apache-tomcat-9.0.80 /usr/local/tomcat90

ENV CATALINA_HOME /usr/local/tomcat90

ENV OPTS "-Xms128m -Xmx512m"

COPY phone_war.war /usr/local/tomcat90/webapps/

EXPOSE 8080

ENTRYPOINT /usr/local/tomcat90/bin/catalina.sh run
